import config from "@/config"
import http from "@/utils/request"

export default {
  task: {
    listTask: {
      url: `${config.API_URL}/workflow/task/list`,
      name: "发起任务列表",
      get: async function (query) {
        return await http.get(this.url, query)
      }
    },
    listWaits: {
      url: `${config.API_URL}/workflow/task/waits`,
      name: "待办任务列表",
      get: async function (query) {
        return await http.get(this.url, query)
      }
    }
  }
}
